package com.example.docmanagement.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 重置密码确认请求
 */
@Data
@Schema(description = "重置密码确认请求参数")
public class ResetPasswordConfirmRequest {

    @Schema(description = "重置密码令牌", example = "9a3f0b86-7f7c-4f0a-9d5c-2d91564e89f1", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "重置令牌不能为空")
    private String token;

    @Schema(description = "新密码，至少6位", example = "newPassword123", minLength = 6, requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, max = 64, message = "密码长度需在6~64位之间")
    private String newPassword;
}

